package com.yt.sys.models.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import java.io.Serializable;

/**
 * 角色-权限关联信息VO
 *
 * @author chen
 * @Date 2025-09-03 14:27:13
 */
@Data
public class SysRolePermissionVO implements Serializable {
    @ApiModelProperty(value = "关联ID")
    private Long id;
    @ApiModelProperty(value = "数据版本号（乐观锁控制）")
    private Integer revision;
    @ApiModelProperty(value = "关联角色ID（关联sys_role.id）")
    private Long roleId;
    @ApiModelProperty(value = "关联权限ID（关联sys_permission.id）")
    private Long permissionId;

    @ApiModelProperty(value = "角色名称（来自sys_role.role_name）")
    private String roleName;
    @ApiModelProperty(value = "权限名称（来自sys_permission.permission_name）")
    private String permissionName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
